import cn.dev33.satoken.secure.SaSecureUtil
import top.byfree.jbyan.saber.bean.SECRET_KEY
import java.sql.Connection
import java.sql.DriverManager

/**
 * @author jbyan
 * @since 2024/5/16
 */

fun getTestConn(): Connection {
    Class.forName("com.mysql.cj.jdbc.Driver")
    return DriverManager.getConnection("jdbc:mysql://localhost:3306/saber", "root", "root")
}

fun main(args: Array<String>) {
    println(SaSecureUtil.aesEncrypt(SECRET_KEY, "admin123"))

}